<?php
include_once('common/header.php');
$strRefer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
if($AppUI->id <= 0 || $strRefer == '') {
	$arrJson 	= array('error'=>1,'msg'=>$arrError[1]);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';
	exit();
}
$intAction 	= $objRequest->getParam('act',null);
if($intAction == 1) {
	include_once('index/box-place.php');
	$this->view->ajax	= 1;
	$objView	= Zend_Registry::get('objView');			
	$strHeader	= $objView->fetch('index/box-place-header.tpl');
	$strPlace	= $objView->fetch('index/box-place.tpl');
	$arrJson	= array('error'		=> 0, 	
						'dplace' 	=> $strPlace,
						'dheader' 	=> $strHeader,
					);
	echo $objRequest->getParam('callback') . '(' . Zend_Json::encode($arrJson) . ')';	
	exit();
}	
?>
